rewrite rule
am 10.03.2010 19:42:55 von Richard Schoenig------_=_NextPart_001_01CAC081.8038D8D6
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I am new to using mod_rewrite and have been trying to create a rule to=0D
do something rather simple, but keep hitting a wall. I have been trying=0D
to research online how to do it, but I keep finding global changes and=0D
not specific to what I am trying to do. Essentially I am looking to use=0D
a rewrite rule to redirect users in an application from=0D
=0D
=0D
=0D
http://server4/perl.pl?n=3D1 to http://server1/perl.pl?n=3D1=0D
=0D
=0D
=0D
=0D
=0D
I tried using =0D
=0D
RewriteEngine on=0D
=0D
Options +FollowSymlinks=0D
=0D
RewriteCond %{QUERY_STRING} ^n=3D1$=0D
=0D
RewriteRule ^$ http://127.0.0.1/ perl.pl [L]=0D
=0D
RewriteCond %{QUERY_STRING} ^n=3D2$=0D
=0D
RewriteRule ^$ http://127.0.0.1/ perl.pl [L]=0D
=0D
RewriteCond %{QUERY_STRING} ^n=3D3$=0D
=0D
RewriteRule ^$ http://mypcname/perl.pl [L]=0D
=0D
=0D
=0D
=0D
=0D
=0D
=0D
To test on my local host but I am guessing that it is not even close to=0D
what I want to do.=0D
=0D
=0D
=0D
=0D
=0D
The information in this email is confidential and may be legally privileged=
.. It is intended solely for the addressee. Access or use by any other perso=
n to this internet email is not authorized and may be unlawful. If you are =
not the intended recipient, please delete or destroy this email. If you do =
not wish to receive future emails from this sender, please reply directly t=
o this email requesting you be removed from any mailing list.=0D
------_=_NextPart_001_01CAC081.8038D8D6
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:m=3D"http://schema=
s.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html=
40">=0D
=0D
=0D
=
=0D
=0D
=0D
=0D
=0D
=0D
=0D
=0D
=0D
I am new to using mod_rewrite and have been trying to =
create=0D
a rule to do something rather simple, but keep hitting a wall. I have=
=0D
been trying to research online how to do it, but I keep finding global chan=
ges=0D
and not specific to what I am trying to do. Essentially I am looking =
to=0D
use a rewrite rule to redirect users in an application from
=0D
=0D
=0D
erl.pl?n=3D1">http://server4/perl.pl?n=3D1 =0D
to http=
://server1/perl.pl?n=3D1
=0D
=0D
=0D
I tried using
=0D
RewriteEngine on
=0D
Options +FollowSymlinks
=0D
RewriteCond %{QUERY_STRING} ^n=3D1$
p>=0D
=0D
RewriteRule ^$ http://127.0.0.1/ perl.pl [L]
=0D
RewriteCond %{QUERY_STRING} ^n=3D2$
p>=0D
=0D
RewriteRule ^$ http://127.0.0.1/ perl.pl [L]
=0D
RewriteCond %{QUERY_STRING} ^n=3D3$
p>=0D
=0D
RewriteRule ^$ http://mypcname/perl.pl [L]
/p>=0D
=0D
=0D
=0D
=0D
To test on my local host but I am guessing that it is =
not=0D
even close to what I want to do.
=0D
=0D
:auto'>
=0D
=0D
The information in this email is confidential and may be legally privileged=
.. It is intended solely for the addressee. Access or use by any other perso=
n to this internet email is not authorized and may be unlawful. If you are =
not the intended recipient, please delete or destroy this email. If you do =
not wish to receive future emails from this sender, please reply directly t=
o this email requesting you be removed from any mailing list.
=0D
=0D
=0D
------_=_NextPart_001_01CAC081.8038D8D6--